<!--
  Generated template for the ApprovePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
    <ion-navbar>
        <ion-title>
            我的审批
        </ion-title>
    </ion-navbar>
</ion-header>
<ion-content>
    <div class="content_div">
        <div class="suggestion-content">
    <textarea name="answer" placeholder="请输入审批意见" class="textarea"
              maxlength="500" [(ngModel)]="remarkVal"></textarea>
        </div>
        <div class="div-item">
            <div *ngFor="let item of yaosuList;let i=index">
                <ion-item *ngIf="item.QuZhiLX=='1'">
                    <ion-label>{{item.YaoSuMC}}</ion-label>
                    <ion-input type="text" placeholder="" [(ngModel)]="list[i].YaoSuZ"></ion-input>
                </ion-item>
                <ion-item *ngIf="item.QuZhiLX=='2'">
                    <ion-label>{{item.YaoSuMC}}</ion-label>
                    <ion-select okText="确定" cancelText="取消" placeholder="" [(ngModel)]="list[i].YaoSuZ">
                        <ion-option *ngFor="let typeData of item.YaoSuZ" value="{{typeData}}">{{typeData}}</ion-option>
                    </ion-select>
                </ion-item>
                <ion-item *ngIf="item.QuZhiLX=='3'">
                    <ion-label>{{item.YaoSuMC}}</ion-label>
                    <ion-select multiple="true" okText="确定" cancelText="取消" placeholder=""
                                [(ngModel)]="list[i].YaoSuZ">
                        <ion-option *ngFor="let typeData of item.YaoSuZ" value="{{typeData}}">{{typeData}}</ion-option>
                    </ion-select>
                </ion-item>
            </div>
            <div *ngIf="spType==2">
                <ion-item (click)="CaiGouLXHander()">
                    <ion-label>采购类型
                        <span class="input_span">{{CaiGouLXLabel}}</span>
                    </ion-label>
                    <img style="width: 8px" src="assets/imgs/icon-right arrow@2x.png" item-end/>
                </ion-item>

                <ion-item (click)="CaiGouFSHander()">
                    <ion-label>采购方式
                        <span class="input_span">{{CaiGouFSLabel}}</span>
                    </ion-label>
                    <img style="width: 8px" src="assets/imgs/icon-right arrow@2x.png" item-end/>
                </ion-item>
                <ion-item (click)="CaiGouZZXSHander()">
                    <ion-label>组织形式
                        <span class="input_span">{{ZuZhiXSLabel}}</span>
                    </ion-label>
                    <img style="width: 8px" src="assets/imgs/icon-right arrow@2x.png" item-end/>
                </ion-item>
                <ion-item (click)="sflistHandler('采购计划',0,ShiFouCGJH)">
                    <ion-label>采购计划
                        <span class="input_span">{{ShiFouCGJHLabel}}</span>
                    </ion-label>
                    <img style="width: 8px" src="assets/imgs/icon-right arrow@2x.png" item-end/>
                </ion-item>
                <ion-item (click)="sflistHandler('政府采购',1,ShiFouZFCG)">
                    <ion-label>政府采购
                        <span class="input_span">{{ShiFouZFCGLabel}}</span>
                    </ion-label>
                    <img style="width: 8px" src="assets/imgs/icon-right arrow@2x.png" item-end/>
                </ion-item>
                <ion-item (click)="sflistHandler('签订合同',2,ShiFouQDHT)">
                    <ion-label>签订合同
                        <span class="input_span">{{ShiFouQDHTLabel}}</span>
                    </ion-label>
                    <img style="width: 8px" src="assets/imgs/icon-right arrow@2x.png" item-end/>
                </ion-item>
                <ion-item (click)="sflistHandler('是否跨年',3,ShiFouKN)">
                    <ion-label>是否跨年
                        <span class="input_span">{{ShiFouKNLabel}}</span>
                    </ion-label>
                    <img style="width: 8px" src="assets/imgs/icon-right arrow@2x.png" item-end/>
                </ion-item>
            </div>
            <div class="upload" (click)="presentActionSheet()"><p style="color:#666666 ">上传附件</p></div>
            <div style="width: 93%;margin: 0 auto">
                <img *ngFor="let item of fileList" [src]="item.FuJianLJ" style="width: 100px;height: 120px">
                <!--<p *ngFor="let item of fileList" style="color: #666666" ><span>附件名称:</span>&nbsp;&nbsp;{{item.FuJianMC}}</p>-->
            </div>

        </div>
        <ion-item (click)="approverHander()" *ngIf="isHQBool">
            <ion-label>会签人
                <span class="input_span">{{hqName}}</span>
            </ion-label>
            <img style="width: 8px" src="assets/imgs/icon-right arrow@2x.png" item-end/>
        </ion-item>

        <div class="buttonDiv" *ngIf="checkType !='1'">
            <button ion-button (click)="getCheckInfo('back')">退回</button>
            <button ion-button (click)="getCheckInfo('pass')">审核通过</button>

        </div>
    </div>
</ion-content>

